﻿ <%@page import="com.hh.bss.util.StringHelper" %>
<%
  String companyId=request.getParameter("companyId");  
  String custId=request.getParameter("custId"); 
  if (StringHelper.isEmpty(companyId)) companyId="0";
  if (StringHelper.isEmpty(custId)) custId="0";
  
  String type=request.getParameter("type"); 
  if (StringHelper.isEmpty(type)) type="ADD"; 
%> 
 
<!DOCTYPE html>  
<html>  
<head>  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
    <meta name="keywords" content="签约客户">  
    <meta name="description" content="签约客户">  
    <title>签约客户</title>  
    
    <%@ include file="/WEB-INF/inc/default.jsp"%>
    <jsp:include page="/WEB-INF/inc/dic.jsp"/>    

</head>  
<body>  
    
      

    
    <div id="dlg_edit" class="easyui-panel" style="width:1100px;height:590px;">  
            <div id="tab_panel" class="easyui-tabs" style="width:1100px;height:580px">  
                         <div title="基本信息" url="/customer/company/info.do"  >  
                             <iframe   src=""  style="width:99%;height:99%"></iframe>  
                         </div>
                         <div title="组织架构" url="/customer/company/orgManager.do"  >  
                             <iframe   src=""  style="width:99%;height:98%"></iframe>  
                         </div>
                         <div title="公司新闻" url="/customer/companyNews/managerPage.do">  
                             <iframe   src=""  style="width:99%;height:98%"></iframe>  
                         </div>
                         <div title="公司附件"  url="/customer/companyAttachment/managerPage.do" >  
                             <iframe   src=""  style="width:99%;height:98%"></iframe>  
                         </div>	
                         <div title="客户联系人"  url="/customer/customerContacter/managerPage.do" >  
                             <iframe   src=""  style="width:99%;height:98%"></iframe>  
                         </div>
                         <div title="客户联系记录"  url="/customer/customerCrm/managerPage.do"  >  
                             <iframe   src=""  style="width:99%;height:98%"></iframe>  
                         </div>
                         <div title="财务信息"  url="/customer/customer/financeInfo.do"  >  
                             <iframe   src=""  style="width:99%;height:98%"></iframe>  
                         </div>
                         <div title="客户投诉"  url="/customer/customerComplain/managerPage.do" >  
                             <iframe   src=""  style="width:99%;height:98%"></iframe>  
                         </div>
                         <div title="招聘职位"  url="/project/contractJob/customerJob.do">  
                             <iframe   src=""  style="width:99%;height:98%"></iframe>  
                         </div>	
            </div>             
            
    </div>
      
  
    
    <script type="text/javascript">  
        var url;  
        var companyId=<%=companyId%>;
        var custId=<%=custId%>;
        
        
        
       $('#tab_panel').tabs({
        	    onSelect: function(title,index){
        	    
        	    	var tab=$('#tab_panel').tabs('getTab', index);
        	    	if (tab.attr('url')=='/customer/company/info.do'){
        	    		tab.find('iframe')[0].contentWindow.location.href=tab.attr('url')+"?type=<%=type%>&companyId="+companyId;
        	      }		
        	      else if (tab.attr('url')=='/customer/customerContacter/managerPage.do'||tab.attr('url')=='/customer/customerCrm/managerPage.do'||tab.attr('url')=='/customer/customer/financeInfo.do'||tab.attr('url')=='/customer/customerComplain/managerPage.do'||tab.attr('url')=='/project/contractJob/customerJob.do')
        	        tab.find('iframe')[0].contentWindow.location.href=tab.attr('url')+"?custId="+custId;
        	      else 	
        	    	   tab.find('iframe')[0].contentWindow.location.href=tab.attr('url')+"?companyId="+companyId;
        	    	
        	    	
        	    }
        }); 
        
      
    </script>  
     
     

     
     
     
</body>  
</html>